package com.jlkf.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jlkf.dao.TblGuidePageMapper;
import com.jlkf.pojo.TblGuidePage;
import com.jlkf.service.AdvertService;

@Service
public class AdvertServiceImpl implements AdvertService {
	@Autowired
	private TblGuidePageMapper tblGuidePageMapper;
	
	@Override
	public TblGuidePage getBootPage() {
		// TODO Auto-generated method stub
		return tblGuidePageMapper.getBootPage();
	}
	
	@Override
	public Map<String,Object> getMore() {
		return tblGuidePageMapper.getMore();
	}

	@Override
	public int insert(TblGuidePage page) {
		// TODO Auto-generated method stub
		return tblGuidePageMapper.insertSelective(page);
	}

	@Override
	public int update(TblGuidePage page) {
		// TODO Auto-generated method stub
		return tblGuidePageMapper.updateByPrimaryKeySelective(page);
	}

	@Override
	public List<TblGuidePage> getGuidPageList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return tblGuidePageMapper.getList(map);
	}

	@Override
	public int delete(List<String> list) {
		// TODO Auto-generated method stub
		return tblGuidePageMapper.deleteList(list);
	}
	
	@Override
	public TblGuidePage getDetail(Long gId) {
		// TODO Auto-generated method stub
		return tblGuidePageMapper.selectByPrimaryKey(gId);
	}

	@Override
	public List<TblGuidePage> getOtherList() {
		// TODO Auto-generated method stub
		return tblGuidePageMapper.selectOtherList();
	}

}
